http = require 'http'
bl = require 'bl'
results = []
count = 0

printResults = ()->
	for i in [0..2]
		console.log results[i]

httpGet = (index)->
	http.get process.argv[index + 2], (response)->
		response.pipe bl (err, data)->
			return null if err
			results[index] = data.toString()
			count++;
			if count == 3
				printResults()

for i in [0..2]
	httpGet i
